package com.vijay.loadtimeweave;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
public class AsyncBean {

    @Async
    public void asyncRun() {
        System.out.println("async run :" + Thread.currentThread());
    }

    public void run() {
        System.out.println("sync run before::" + Thread.currentThread());
        asyncRun();
        System.out.println("sync run after::" + Thread.currentThread());
    }


}
